package com.drg.center.entity.enums;

/**
 * 病例类型枚举类
 *
 * @Author: zhangxilin
 * @Date: 2021/11/5
 */
public enum CaseSearchTypeEnum {

    noUpload(1, "未上传"),
    upload(2, "已上传"),
    auditException(3, "审核异常"),
    noSettle(4, "His未结算"),
    none(5, "0000组病例"),
    QY(6, "QY组病例");

    private Integer code;

    private String desc;


    public static CaseSearchTypeEnum getByCode(Integer code) {
        for (CaseSearchTypeEnum enums : CaseSearchTypeEnum.values()) {
            if (enums.getCode().equals(code)) {
                return enums;
            }
        }
        return null;
    }

    CaseSearchTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
